package it.multisystem.gettingstarted.geometry;

import it.multisystem.gettingstarted.NotOOGeometry;

public class Main {
	public static void main(String[] args) {
		if(args.length != 4) {
			System.err.println("Numero paametri non valido");
			System.exit(1);
		}
		double x1 = Double.parseDouble(args[0]);
		double x2 = Double.parseDouble(args[1]);
		double y1 = Double.parseDouble(args[2]);
		double y2 = Double.parseDouble(args[3]);
		double distance = NotOOGeometry.calculateDistance(x1, y1, x2, y2);
		System.out.println(distance);
	}

}
